/* 
 * File:   StringManipulator.h
 * Author: mervin
 *
 * Created on June 28, 2012, 7:10 PM
 */

/*//TODO:
 1. Add find pattern function 
*/
#ifndef STRINGMANIPULATOR_H
#define	STRINGMANIPULATOR_H

#include <string>
#include <vector>
#include <boost/algorithm/string/split.hpp>
#include <boost/algorithm/string/replace.hpp>
#include <boost/algorithm/string/classification.hpp>
using namespace boost;
using namespace std;

class stringManipulator {
protected:
    string manipulatedstring, patterntobesearch, patternreplacement;
    vector<string> modifiedstream,resultstream;
    void packstring(vector<string>&);
   
public:
void splitstream(string inputstring , const string patterntobesearch);    
void findandreplace(string inputstring, const string patterntobesearch, const string substitutestring);
vector<string> getstream();
void clear_result_stream();

};
#endif	/* STRINGMANIPULATOR_H */

